Scenario #2000: Create Self Debitor for Partner with Identical Contact Data

UseCase Create Self Debitor For Partner With Identical Contact Data => Debitor: D-3101100 - Michelle Matthieu

Properties

Required

Given

name value
partnerNumber P-31011
debitorNumberSuffix 00
billable true
vatBusiness false
vatReverseCharge false
defaultPrefix mim

Determine Partner-Person UUID

HTTP GET "/api/hs/office/partners/P-31011" \
  -H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
  `# {` \
  `#   "sub" : "uuid<hsh-alex_superuser>"` \
  `# }`
=> status: 200 OK 
{
  "uuid" : "0c18087d-1a1f-4536-a97c-7aadb7ffa8ee", // Partner: P-31011 - Michelle Matthieu
  "partnerNumber" : "P-31011",
  "partnerRel" : {
    "uuid" : "854e89b8-2c77-48fd-b859-701dc7b18897",
    "anchor" : {
      "uuid" : "c43fc218-ae0e-4d6d-afc9-528d9861c2eb", // Person: Hostsharing eG
      "personType" : "LEGAL_PERSON",
      "tradeName" : "Hostsharing eG",
      "salutation" : null,
      "title" : null,
      "givenName" : null,
      "familyName" : null
    },
    "holder" : {
      "uuid" : "6e02bc9b-f056-4111-a571-960571fd7d99", // personUuid
      "personType" : "NATURAL_PERSON",
      "tradeName" : null,
      "salutation" : null,
      "title" : null,
      "givenName" : "Michelle",
      "familyName" : "Matthieu-Zhang"
    },
    "type" : "PARTNER",
    "mark" : null,
    "contact" : {
      "uuid" : "df5801c0-49bd-4924-af68-3c4a8b37ae2a", // Contact: Michelle Matthieu
      "caption" : "Michelle Matthieu",
      "postalAddress" : {
        "zipcode" : "22123",
        "country" : "Germany",
        "city" : "Hamburg",
        "street" : "An der Wandse 34",
        "name" : "Michelle Matthieu"
      },
      "emailAddresses" : {
        "main" : "michelle@matthieu.example.org"
      },
      "phoneNumbers" : {
        "mobile" : "+49 152 1234567"
      }
    }
  },
  "details" : {
    "uuid" : "8988e4f7-cd99-4ab2-90dc-ab778db5b81d",
    "registrationOffice" : null,
    "registrationNumber" : null,
    "birthName" : "Eichbaum",
    "birthPlace" : "Neustadt a.d.R.",
    "birthday" : "1951-03-25",
    "dateOfDeath" : null
  }
}

Create Debitor: D-3101100 - Michelle Matthieu

HTTP POST "/api/hs/office/debitors" \
  -H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
  `# {` \
  `#   "sub" : "uuid<hsh-alex_superuser>"` \
  `# }` \
  <<EOF
{
  "debitorRel" : {
    "anchor.uuid" : "6e02bc9b-f056-4111-a571-960571fd7d99", // personUuid
    "holder.uuid" : "6e02bc9b-f056-4111-a571-960571fd7d99", // personUuid
    "contact.uuid" : "df5801c0-49bd-4924-af68-3c4a8b37ae2a" // Contact: Michelle Matthieu
  },
  "debitorNumberSuffix" : "00",
  "billable" : true,
  "vatBusiness" : false,
  "vatReverseCharge" : false,
  "defaultPrefix" : "mim"
}
EOF
=> status: 201 CREATED b4b912d7-73f3-4aec-81fb-c3db2cbbb883

generated on 2026-08-10 04:42:24 for branch HEAD